package cloud.xiangyixiang.www.spring.boot.java.basics.classes;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 员工类
 * </p>
 *
 * @author weixin
 * @date 2023/9/18 20:12
 */
public class StaffStream {

    static List<PersonStream> personList = new ArrayList<>();

    public static void initPerson() {
        personList.add(new PersonStream("张三", 8, 3000, "male", "临汾"));
        personList.add(new PersonStream("李四", 18, 5000, "female", "运城"));
        personList.add(new PersonStream("王五", 28, 7000, "male", "临汾"));
        personList.add(new PersonStream("孙六", 38, 9000, "female", "运城"));
    }

    public static List<PersonStream> getPersonList() {
        return personList;
    }

    public static void addPersonStream(PersonStream personStream) {
        personList.add(personStream);
    }



}
